#include <Arduino.h>
#include "Poki.h"
#include "hardware.h"


Poki *software;
Hardware *hardware;
Action action;
Event event;

void setup() {
  // com port setting
  Serial.begin(115200);
  //init operating system
  hardware = new Hardware;
  software = new Poki();
  software->setup_ani(hardware);
}

void loop() {
  action = hardware->get_action(200);
  // Serial.println(action);
  event = software->main_process(action);
  hardware->main_process(event);
  // Serial.println(esp_get_free_heap_size());
  // delay(300);
  // Serial.println(sizeof(size_t));
}

